<!DOCTYPE html>
<html>
  <head>
    <title>悦淘新房</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/weui.min.css">
      <link rel="stylesheet" href="${s.base}/mobile/base/css/jquery-weui.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/base.css">
      <link rel="stylesheet" href="${s.base}/mobile/wechat/css/component.css">
      <style type="text/css">
          .xyg-money {
              width: 96%;
              background: #ffffff;
              padding: 10px 2%;
              margin: 10px 0px;
          }
      </style>
  </head>
  <body style="background: #ffffff;">
  <div class="xyg-money" style="margin-top: 0px;">
  	<div class="weui-cells__title margin-top-0 borderBottom" style="height:1.5rem;line-height:1.5rem;">可提现金额&nbsp;<span style="color: red;">${webMember.money}</span><div onclick="goTixianListPage('${memberId}')" style="color:#C88B90; float:right;">提现记录</div></div>
  	<div class="weui-cells__title margin-top-0  border-top" style="height:1.5rem;line-height:1.5rem; ">提现金额</div>
  	<div class="weui-cells__title xyg-money-font4 margin-top-bottom-0 ">
  	<div class="weui-flex margin-top-bottom-0">
  			<div>
			  <div class="placeholder">
			  <span>￥</span>
			</div>
			</div>
			<div class="weui-flex__item">
			  <input class="weui-input" id="money" type="name" pattern="[0-9]*" placeholder="请输入提现金额">
			</div>
		  </div>
  		
  	</div>

  </div>
   <div class="xyg-content" style="width: 92%; margin: 0px 4%;">
		<a href="javascript:submit()" class="weui-btn weui-btn_default">立即提现</a>
  </div>
  <article class="weui-article" style="padding: 0px;">
      <section>
          <section>
              <p>
                  <img src="${s.base}/mobile/wechat/images/jl.jpg" alt="">
              </p>
          </section>
      </section>
  </article>
 
  </body>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
  <script src="${s.base}/mobile/base/js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/jquery-weui.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/swiper.js" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/base/js/component.js?12323434323232323232" type="text/javascript" charset="utf-8"></script>
  <script src="${s.base}/mobile/wechat/fonts/iconfont.js"></script>
  <script src="${s.base}/mobile/wechat/js/window_port.js"></script>
  <script src="${s.base}/mobile/wechat/js/base.js"></script>

  <!--js分享代码开始-->
  <input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
  <input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
  <input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
  <input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
  <input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
  <input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
  <input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
  <input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
  <!--js分享代码结束-->
  <script>
      var memberId='${memberId}';
      function submit() {
          var money = $("#money").val();
          if (money == null || money == ""){
              $.toast("请输入提现金额！", "text");
              return false;
          }
          var reg = /^[1-9]\d*$/;
          if (!reg.test(money)){
              $.toast("请输入正整数！", "text");
              return false;
          }
          if (parseInt(money) < 10){
              $.toast("您输入的金额不能小于10元！", "text");
              return false;
          }
          var readyMoney = '${webMember.money}';
          if (parseInt(money) > readyMoney){
              $.toast("您的剩余金额不足！", "text");
              return false;
          }
          $.fn.postMethodResult("/weChat/withdrawSave",{'money':money,'memberId':memberId},function (data) {
              $.alert("您的提现申请已经提交成功，我们将会及时处理！",function () {
                  goMyPage(memberId);
              });
          });
      }


  </script>
</html>

